import request from '@/config/http.js'

export function login(loginInfo) {
  return request({
    url: 'login',
    method: 'post',
    data: loginInfo
  })
}

export function getInfo() {
  return request({
    url: 'authinfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: 'loginOut',
    method: 'post'
  })
}
